//
//  JSQMessagesCollectionViewVoiceCell.m
//  SkyHospital
//
//  Created by C_HAO on 15/4/21.
//  Copyright (c) 2015年 GrayWang. All rights reserved.
//

#import "JSQMessagesCollectionViewVoiceCell.h"
#import "JSQMessagesMediaViewBubbleImageMasker.h"
#import "AFSoundItem.h"
#import "AFSoundPlayback.h"

@interface JSQMessagesCollectionViewVoiceCell ()

@property (nonatomic, weak) IBOutlet UILabel *voiceSecondsLabel;


@end

@implementation JSQMessagesCollectionViewVoiceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.voiceImageView.animationDuration = 1.0;
}

- (void)setVoiceSeconds:(NSString *)voiceSeconds {
    _voiceSeconds = voiceSeconds;
    _voiceSecondsLabel.text = [NSString stringWithFormat:@"%@''", voiceSeconds];
}

- (void)playVoiceAnimation {
    [self.voiceImageView startAnimating];
}

- (void)stopVoiceAnimation {
    [self.voiceImageView stopAnimating];
}

@end
